package com.adtech.farmProducts.interfaces;

/**
 * Time:2019/8/6
 * Created by xiaocz
 * Describe 触发刷新工具
 */
public class RoundRefreshUtils {

    private static RoundRefresh mRoundRefresh;
    public static void setPushRefresh(RoundRefresh roundRefresh){
        mRoundRefresh = roundRefresh;
    }

    public static void clear(){
        mRoundRefresh=null;
    }

    public static void onPushRefresh(int type,String message){
        if(mRoundRefresh !=null){
            mRoundRefresh.onRoundRefresh(type,message);
        }
    }
}
